package com.example.userservice.permission;

import com.example.userservice.entity.User;
import com.example.userservice.entity.vo.UserVo;

import java.util.List;

public interface PermissionChecker {
    //获取用户列表，入参为当前用户id
    List<UserVo> getUsers(Long currentUserId);

    //获取指定用户，入参为当前用户id和目标用户id
    UserVo getUser(Long currentUserId, Long targetUserId);

    //更新用户信息
    Boolean updateUser(Long currentUserId, Long targetUserId, User user);

    //重置密码
    Boolean resetPassword(Long currentUserId, User user);

}
